package day_2022_4_to_7.day48;

import java.util.Scanner;

/**
 * 剪花布条
 * @author haomin
 * @date 2022/06/01 17:59
 **/

public class Day33_1_StrContains {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            String str = in.next();
            String ret = in.next();
            int count = 0;
            while (str.contains(ret)) {
                count++;
                str = str.replaceFirst(ret, " ");
            }
            System.out.println(count);
        }
        in.close();
    }
}